/**
 * @param {string} s
 * @return {number}
 */
var countPalindromes = function (s) {

  if (s.length < 5) return 0
  let count = 0, arr = [], MOD = 10e9 + 7, res = [], visited = new Array(s.length).fill(false)
  for (let i = 0; i < s.length; i++) {
    if(arr.length<5 && !visited[i]){
      arr.push(s[i])
    }
  }
};

countPalindromes("9999900000")